<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<?php if(Yii::app()->user->name !='invitado'):?>
<div class="well top-bar">
    <?php 
    $this->menu = array_merge(
            array(
                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/atras.png") . "</div>" . Yii::t('AweCrud.app', 'Back'), 'itemOptions'=>array('id'=>'atrasTab')),
                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/adelante.png") . "</div>" . Yii::t('AweCrud.app', 'Forward'), 'itemOptions'=>array('id'=>'adelanteTab')),
            ),
            $this->menu, 
            array(
               // array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/calendario.png") . "</div>" . Yii::t('AweCrud.app', 'Calendar'), 'url' => Yii::app()->baseUrl . "/index.php/sms/sms/sendSms"),
//                array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/pendientes.png") . "</div>" . Yii::t('AweCrud.app', 'Pending'), 'url' => Yii::app()->baseUrl . "/index.php/pendientes/", 'itemOptions'=>array('class' => is_object(YiiBase::app()->getController()->getModule()) ? (YiiBase::app()->getController()->getModule()->getId() == "pendientes" ? "active" : "") : "")),
                //array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/sms.png") . "</div>" . Yii::t('AweCrud.app', 'Send SMS'), 'url' => Yii::app()->baseUrl . "/index.php/sms/sms/sendSms"),
            )
    );
    $this->widget('bootstrap.widgets.TbTabs', array(
        'type' => 'pills', // 'tabs' or 'pills'
        'tabs' => $this->menu,
        'htmlOptions' => array('class' => 'tb-tabs-tradesystem'),
        'encodeLabel' => false,
        'events'=>array('click'=>'js:topbar')
    ));
    ?>
</div>
<?php endif;?>
<div class="well partners-well">
    <?php // $this->widget( 'ext.EChosen.EChosen' ); ?>
    <?php echo $content; ?>
</div>

<?php $this->endContent(); ?>